<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="./resources/css/default.css" rel="stylesheet" type="text/css" />
        <link href="./resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
        <title>Facelets Template</title>
    </h:head>
    <h:body onload="#{listaPropuestas.setIndex(false)}">
        <f:view>
           <!-- <f:loadBundle basename="bundle.messages" var="msg"/>-->
            
            <div id="top">
                <ui:insert name="top">Cabecera</ui:insert>
            </div>
                          
            <div>
                <div>
                    <h:form>
                        <p:menu styleClass="left">
                            <p:submenu label="#{msg.proposals}">
                                <p:menuitem value="#{msg.newproposal}" actionListener="#{menuControl.newproposal(e)}" 
                                            update=":main" ajax="false" action="#{nuevaPropControl.beginConversation()}"/>
                                <p:menuitem value="#{msg.findproposals}" actionListener="#{menuControl.findproposals(e)}" update=":main" ajax="false"/>                                
                                <p:menuitem value="#{msg.myproposals}" actionListener="#{menuControl.myproposals(e)}" update=":main" ajax="false"/>
                            </p:submenu>
                            <p:submenu label="#{msg.comunications}">
                                <p:menuitem value="#{msg.watchconvers}"/>
                                <p:menuitem value="#{msg.newconvers}"/>
                                <p:menuitem value="#{msg.notifications}"/>
                            </p:submenu>
                            <p:submenu label="#{msg.contacts}">
                                <p:menuitem value="#{msg.watchcontacts}"/>
                                <p:menuitem value="#{msg.searchcontacts}"/>
                            </p:submenu>
                            <p:submenu label="#{msg.profile}">
                                <p:menuitem value="#{msg.editprofile}" actionListener="#{menuControl.editprofile(e)}" update=":main"/>
                                <p:menuitem value="#{msg.changepw}"/>
                                <p:menuitem value="#{msg.closesession}"/>
                            </p:submenu>
                        </p:menu>                                         
                    </h:form>
                </div>

                <div>
                    <div id="right">
                        <ui:insert name="right">Publicidad</ui:insert>
                    </div>
                    
                    <div id="content" class="right_content">
                        <p:panel id="main" >
                            <ui:include src="#{menuControl.url}"/>
                        </p:panel>
                    </div>
                </div>
            </div>
            
            <div id="bottom">
                <ui:insert name="bottom">Pie de página</ui:insert>
            </div>            
        </f:view>
    </h:body>
</html>
